	<fieldset>
	<legend>Pridanie kolektívu</legend>

  <?php
    echo form_open('user/kolektiv_validation');
    
    echo validation_errors();
    
    echo "<p><label>Názov triedy: </label>";
    echo form_input('nazov', $this->input->post('nazov'));
    echo "</p>";
    
    echo "<p><label>Počet žiakov: </label>";
    echo form_input('pocet', $this->input->post('pocet'));
    echo "</p>";
    
    echo "<p><label>Škola: </label>";
    echo form_input('skolaKolektiv', $this->input->post('skolaKolektiv'));
    echo "</p>";
    
    echo "<p><label>Priemerný vek: </label>";
    echo form_input('vek', $this->input->post('vek'));
    echo "</p>";
    
    $options = array(
                   'matematika'  => 'Matematika',
                   'fyzika'    => 'Fyzika',
                   'informatika'   => 'Informatika',
                   'ine' => 'Iné',
                 );
    echo "<p><label>Zameranie: </label>";             
    echo form_dropdown('zameranie', $options, $this->input->post('zameranie'));
    echo "</p>";
    
    
    echo "<p><label></label>";
    echo form_submit('kolektiv_submit', 'Pridaj kolektiv');
    echo "</p>";
    
    echo form_close();
	echo "<p><label></label>";
  ?><a href='<?php echo base_url()."user/kolektiv" ?>'><button>späť</button></a>
  </p>
</fieldset>